import Layout from '@/layout'

const reportFormRouter = {
  path: '/reportForm',
  component: Layout,
  redirect: '/reportForm/stock',
  name: 'reportForm',
  meta: {
    title: '报表管理',
    icon: 'el-icon-document',
    roles: ['admin']
  },
  children: [
    {
      path: 'stock',
      component: () => import('@/views/reportForm/stock'),
      name: 'stock',
      meta: { title: '库存清单' }
    },
    {
      path: 'canExport',
      component: () => import('@/views/reportForm/canExport'),
      name: 'canExport',
      meta: { title: '可出库存' }
    },
    {
      path: 'record',
      component: () => import('@/views/reportForm/record'),
      name: 'record',
      meta: { title: '库存台账' }
    },
    {
      path: 'warning',
      component: () => import('@/views/reportForm/warning'),
      name: 'warning',
      meta: { title: '库存预警' }
    },
    {
      path: 'capacity',
      component: () => import('@/views/reportForm/capacity'),
      name: 'capacity',
      meta: { title: '库存容量' }
    }
  ]
}
export default reportFormRouter
